package com.geeksaga.domain;

import com.geeksaga.annotation.PrintToString;
import com.geeksaga.common.util.HtmlUtil;

/**
 * @author newbie
 * @since 0.1
 */
public class Project extends BaseObject {

    private static final long serialVersionUID = 607172439959352508L;
    
    @PrintToString private String projectCode;
    @PrintToString private String projectName;
    @PrintToString private String projectVersion;
    @PrintToString private String projectState;
    @PrintToString private String projectStart;
    @PrintToString private String projectEnd;
    @PrintToString private String projectDescription;
    @PrintToString private String projectSkin;
    @PrintToString private String specWidth;
    @PrintToString private String specListGrade;
    @PrintToString private String specViewGrade;
    @PrintToString private String specWriteGrade;
    @PrintToString private String specMemoGrade;
    @PrintToString private String delYn;
    @PrintToString private String registDate;
    @PrintToString private String registTime;
    @PrintToString private String modifyDate;
    @PrintToString private String modifyTime;
    
    public Project(){}
    
    public Project(String projectCode) {
    	this.projectCode = projectCode;
    }

    public String getIndexingData() {
        StringBuilder sb = new StringBuilder();
        sb.append(getProjectCode());
        sb.append("\r\n");
        sb.append(getProjectName());
        sb.append("\r\n");
        sb.append(HtmlUtil.removeTag(getProjectDescription()));
        
//        Iterator<SagaFile> iterator = getFileList().iterator();
        
//        while(iterator.hasNext()) {
//            sb.append("\r\n");
//            sb.append(iterator.next().getOriginalName());
//        }
        
        return sb.toString();
    }
    
    public String getProjectCode() {
        return projectCode;
    }
    public void setProjectCode(String projectCode) {
        this.projectCode = projectCode;
    }
    public String getProjectName() {
        return projectName;
    }
    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }
    public String getProjectVersion() {
        return projectVersion;
    }
    public void setProjectVersion(String projectVersion) {
        this.projectVersion = projectVersion;
    }
    public String getProjectState() {
        return projectState;
    }
    public void setProjectState(String projectState) {
        this.projectState = projectState;
    }
    public String getProjectStart() {
        return projectStart;
    }
    public void setProjectStart(String projectStart) {
        this.projectStart = projectStart;
    }
    public String getProjectEnd() {
        return projectEnd;
    }
    public void setProjectEnd(String projectEnd) {
        this.projectEnd = projectEnd;
    }
    public String getProjectDescription() {
        return projectDescription;
    }
    public void setProjectDescription(String projectDescription) {
        this.projectDescription = projectDescription;
    }
    public String getProjectSkin() {
        return projectSkin;
    }
    public void setProjectSkin(String projectSkin) {
        this.projectSkin = projectSkin;
    }
    public String getSpecWidth() {
        return specWidth;
    }
    public void setSpecWidth(String specWidth) {
        this.specWidth = specWidth;
    }
    public String getSpecListGrade() {
        return specListGrade;
    }
    public void setSpecListGrade(String specListGrade) {
        this.specListGrade = specListGrade;
    }
    public String getSpecViewGrade() {
        return specViewGrade;
    }
    public void setSpecViewGrade(String specViewGrade) {
        this.specViewGrade = specViewGrade;
    }
    public String getSpecWriteGrade() {
        return specWriteGrade;
    }
    public void setSpecWriteGrade(String specWriteGrade) {
        this.specWriteGrade = specWriteGrade;
    }
    public String getSpecMemoGrade() {
        return specMemoGrade;
    }
    public void setSpecMemoGrade(String specMemoGrade) {
        this.specMemoGrade = specMemoGrade;
    }    
    public String getDelYn() {
        return delYn;
    }
    public void setDelYn(String delYn) {
        this.delYn = delYn;
    }
    public String getRegistDate() {
        return registDate;
    }
    public void setRegistDate(String registDate) {
        this.registDate = registDate;
    }
    public String getRegistTime() {
        return registTime;
    }
    public void setRegistTime(String registTime) {
        this.registTime = registTime;
    }
    public String getModifyDate() {
        return modifyDate;
    }
    public void setModifyDate(String modifyDate) {
        this.modifyDate = modifyDate;
    }
    public String getModifyTime() {
        return modifyTime;
    }
    public void setModifyTime(String modifyTime) {
        this.modifyTime = modifyTime;
    }    
}